package com.feng.swagger.config;

import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
//开启swagger2
@EnableSwagger2
/**
 * 3.0有问题的直接导入springfox-boot-starter这一个依赖就行，然后注解换成@EnableOpenApi
 * 只要使用swagger就报以下错误：
 * at com.feng.swagger.Kuang06SwaggerApplication.main(Kuang06SwaggerApplication.java:10) [classes/:na]
 *  Caused by: java.lang.NullPointerException: null
 * 	at springfox.documentation.spring.web.WebMvcPatternsRequestConditionWrapper.getPatterns(WebMvcPatternsRequestConditionWrapper.java:56) ~[springfox-spring-webmvc-3.0.0.jar:3.0.0]
 *
 */
//@EnableOpenApi
public class SwaggerConfig {
}
